package com.hkj.configcenter.sample;

import com.hkj.configcenter.core.annotation.FieldValue;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FieldValueController {

    @FieldValue(name = "common.param1")
    private String commonParam1;

    @FieldValue(name = "param1")
    private String param1;

    @GetMapping("/commonParam1")
    public String commonParam1() {
        return commonParam1;
    }

    @GetMapping("/param1")
    public String param1() {
        return param1;
    }

}
